//
//  STNotificationManager.m
//  STBasicsApp
//
//  Created by jerry on 2019/5/2.
//  Copyright © 2019 jerry. All rights reserved.
//

#import "STNotificationManager.h"

@interface STNotificationManager()




@end

@implementation STNotificationManager

+ (NSNotificationCenter *)defaultCenter{
    return [NSNotificationCenter defaultCenter];
}

+ (void)addObserver:(id)observer selector:(SEL)selector name:(NSNotificationName)name object:(id)object{
    if (!observer) {
        return;
    }
    [[self defaultCenter] addObserver:observer selector:selector name:name object:object];
}

+ (void)removeObserver:(id)observer name:(NSNotificationName)name object:(id)object{
    if (!observer) {
        return;
    }
    [[self defaultCenter] removeObserver:observer name:name object:object];
}

+ (void)postNotificationName:(NSNotificationName)name object:(id)object{
    [[self defaultCenter] postNotificationName:name object:object];
}

#pragma mark





@end
